import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';

@Component({
  selector: 'app-login',
  templateUrl: './login.page.html',
  styleUrls: ['./login.page.scss'],
})
export class LoginPage implements OnInit {

  constructor() { }

  @ViewChild('password') password: any

  ngOnInit() {
  }


  showPassword() {
    if (this.password.type === 'password') {
      this.password.type = 'text';
    } else {
      this.password.type = 'password';
    }
  }
}
